package easyjava.hibernate.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="course_template")
@Entity
public class CourseTemplate {
	@Id
	@Column(name="id")
	private int id;
	@Column(name="create_datetime")
	private Date crateDateTime;
	@Column(name="course_type_id")
	private int courseTypeId;
	@Column(name="course_id")
	private int courseId;
	@Column(name="school_year_id")
	private int schoolYearId;
	@Column(name="major_id")
	private int majorId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getCrateDateTime() {
		return crateDateTime;
	}
	public void setCrateDateTime(Date crateDateTime) {
		this.crateDateTime = crateDateTime;
	}
	public int getCourseTypeId() {
		return courseTypeId;
	}
	public void setCourseTypeId(int courseTypeId) {
		this.courseTypeId = courseTypeId;
	}
	public int getCourseId() {
		return courseId;
	}
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	public int getSchoolYearId() {
		return schoolYearId;
	}
	public void setSchoolYearId(int schoolYearId) {
		this.schoolYearId = schoolYearId;
	}
	public int getMajorId() {
		return majorId;
	}
	public void setMajorId(int majorId) {
		this.majorId = majorId;
	}
	@Override
	public String toString() {
		return "courseTemplate [id=" + id + ", crateDateTime=" + crateDateTime + ", courseTypeId=" + courseTypeId
				+ ", courseId=" + courseId + ", schoolYearId=" + schoolYearId + ", majorId=" + majorId + "]";
	}
	
	

}
